package com.fuyun.microservice.proxy;

import com.fuyun.microservice.ResultObject;
import lombok.Data;

@Data
public class ForwardResult {
    private int code;
    private String msg;
    private Object data;

    public static ForwardResult buildFailed(int code, String msg) {
        ForwardResult resultObject = new ForwardResult();
        resultObject.setCode(code);
        resultObject.setMsg(msg);
        return resultObject;
    }
}
